import service from '../utils/request'
import Api from "./serviceApi";

export function getFriendShowVo(){
    return service({
        url: Api.common.tie.getFriendShowVo,
        method: 'get',
    })
}
export function createFriendGroup(data:any){
    return service({
        url: Api.common.tie.createFriendGroup,
        method: 'post',
        params: data
    })
}

export function getFriendGroup(){
    return service({
        url: Api.common.tie.getFriendGroup,
        method: 'get',
    })
}

export function addFriend(data:any){
    return service({
        url: Api.common.tie.addFriend,
        method: 'post',
        params: data
    })
}

export function addFriendId(data:any){
    return service({
        url: Api.common.tie.addFriendId,
        method: 'post',
        params: data
    })
}

export function getFriendAddMessage(){
    return service({
        url: Api.common.tie.getFriendAddMessage,
        method: 'get',
    })
}

export function agree(data:any){
    return service({
        url: Api.common.tie.agree,
        method: 'post',
        params: data
    })
}

export function removeFriend(data:any){
    return service({
        url: Api.common.tie.removeFriend,
        method: 'post',
        params: data
    })
}

export function removeFriendGroup(data:any){
    return service({
        url: Api.common.tie.removeFriendGroup,
        method: 'post',
        params: data
    })
}

export function moveFriendGroup(data:any){
    return service({
        url: Api.common.tie.moveFriendGroup,
        method: 'post',
        params: data
    })
}

export function refusal(data:any){
    return service({
        url: Api.common.tie.refusal,
        method: 'post',
        params: data
    })
}
